Set

Function

This API is used to set parameter for System > N+M Hot Standby Page page.

Request Message

See System > N+M Hot Standby Page > Range > Table 1 for parameter description.

Sample:

  1. Edit mode
POST API/SystemConfig/HotStandby/Set HTTP/1.1
{
    "data": {
        "operation_type": "ModifyMode",
        "mode": "worker",
        "worker": {
            "enable": true
        }
    }
}
  1. Add device
POST API/SystemConfig/HotStandby/Set HTTP/1.1
{
    "data": {
        "operation_type": "AddDevice",
        "standby": {
            "standby_list": [
                {
                    "ip": "172.16.10.102",
                    "port": 80,
                    "username": "admin",
                    "base_enc_password": {
                        "seq": 0,
                        "peer_key": "0s2W/bPmJDYHV3Pm3+p8P+R7owjfe35PSLFRvgjzTVjs=",
                        "cipher": "0x3j5efm+cKfh/x8KVJN3n8fIhOCo+Lx3zR0qtJgBPZZQ2uj0"
                    }
                }
            ]
        }
    }
}
  1. Delete device
POST API/SystemConfig/HotStandby/Set HTTP/1.1
{
    "data": {
        "operation_type": "DelDevice",
        "standby": {
            "standby_list": [
                {
                    "ip": "172.16.10.102",
                }
            ]
        }
    }
}

Response Message

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"result": "success",
	"data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.